package cn.itcast.service;

import cn.itcast.entity.OrderSettingVo;
import cn.itcast.pojo.OrderSetting;

import java.util.Date;
import java.util.List;

public interface OrderSettingsService {
    /**根据日期查询设置预约列表*/
    List<OrderSettingVo> getOrderSettingsByMonth(String date);

    /**修改可预人数*/
    Boolean updateOrderSettingNumber(OrderSetting orderSetting);

    /**设置(新建)可预预约人数*/
    Boolean saveOrderSettingNumber(OrderSetting orderSetting);

    /** 查询已预约人数*/
    Integer queryReservationsByOrderDate(Date orderDate);

    /** 是否是第一次设置*/
    Boolean isFirstOrderSetting(Date orderDate);

    /**更新已预约人数*/
    Boolean updateOrderSettingReservations(String orderDate,Integer reservations);
}
